package com.jkzx;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		LinearLayout ll_jkzs=(LinearLayout) findViewById(R.id.ll_jkzs);
		ll_jkzs.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent=new Intent(MainActivity.this,NoveltyActivity.class);
				intent.putExtra("category", 1);
				startActivity(intent);
				
			}
		});
		LinearLayout ll_zcfg=(LinearLayout) findViewById(R.id.ll_zcfg);
		ll_zcfg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent=new Intent(MainActivity.this,NoveltyActivity.class);
				intent.putExtra("category", 0);
				startActivity(intent);
				
			}
		});
		LinearLayout ll_yfgj=(LinearLayout) findViewById(R.id.ll_yfgj);
		ll_yfgj.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent=new Intent(MainActivity.this,NoveltyActivity.class);
				intent.putExtra("category", 2);
				startActivity(intent);
				
			}
		});
		LinearLayout ll_yxjk=(LinearLayout) findViewById(R.id.ll_yxjk);
		ll_yxjk.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent=new Intent(MainActivity.this,NoveltyActivity.class);
				intent.putExtra("category", 3);
				startActivity(intent);
				
			}
		});
		LinearLayout ll_shxx=(LinearLayout) findViewById(R.id.ll_shxx);
		ll_shxx.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				Intent intent=new Intent(MainActivity.this,NoveltyActivity.class);
				intent.putExtra("category", 4);
				startActivity(intent);
				
			}
		});
	}
}
